package common

import (
	"os"
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestLoadConfig(t *testing.T) {
	LoadConfig("../../.env")
	assert.Equal(t, "imabonsecret", os.Getenv("SITE_SECRET"))
}

func TestLoadConfigFail(t *testing.T) {
	assert.Panics(t, func() { LoadConfig("invalid") })
}
